;(function ($, window, document, undefined) {
	//城市转换名字
	$("#areaAll").change(function(){
		var nameArea = $(this).find("option:selected").text();
		$("#areaAllName").text(nameArea);
	});
	//设置警告规则
	$(".setWarningRule").click(function(){
		var obj = $(this);
		var t= layer.confirm('<div class="margin20">设置警告规则设置警告规则设置警告规则</div>', {
		    btn: ['确定','取消'],
		    type:1,
		    title:"设置警告规则",
		},function(){
			layer.close(t);
		}, function(){
			layer.close(t);
		});
	});
        //停车分析
        var myChart7 = echarts.init(document.getElementById('main7')); 
        var myChart8 = echarts.init(document.getElementById('main8')); 
  
		option7 = {
		    tooltip : {
		        trigger: 'axis',
		        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
		            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
		        }
		    },
		    legend: {
		        data:['停车次数','停车车牌数']
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : false,
		            data : ['201606','201607','201608','201609','201610','201611','201612']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'停车次数',
		            type:'line',
		            barWidth : 5,
		            data:[320, 332, 301, 334, 390, 330, 320]
		        },
		       	{
		            name:'停车车牌数',
		            type:'line',
		            data:[62, 101, 94, 106, 179, 100, 157],
		        },
		        
		    ]
		};

		option8 = {
		    tooltip : {
		        trigger: 'axis',
		        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
		            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
		        }
		    },
		    legend: {
		        data:['停车次数','停车车牌数']
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : false,
		            data : ['201606','201607','201608','201609','201610','201611','201612']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'停车次数',
		            type:'line',
		            barWidth : 5,
		            data:[320, 332, 301, 334, 390, 330, 320]
		        },
		       	{
		            name:'停车车牌数',
		            type:'line',
		            data:[62, 101, 94, 106, 179, 100, 157],
		        },
		        
		    ]
		};


        //停车分析
        myChart7.setOption(option7); 
        myChart8.setOption(option8);
        

})(window.jQuery, window, document);
	
	


 